.class public Lcom/instagram/android/fragment/bt;
.super Lcom/instagram/e/b/b;
.source "FacebookPostingOptionsFragment.java"

# interfaces
.implements Lcom/instagram/a/b;


# instance fields
.field private a:Landroid/view/LayoutInflater;

.field private b:Lcom/instagram/android/widget/InterceptTouchFrameLayout;

.field private c:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/c;",
            ">;"
        }
    .end annotation
.end field

.field private d:Landroid/widget/TextView;

.field private e:Landroid/widget/RadioButton;

.field private f:Landroid/widget/RadioGroup;

.field private final g:Lcom/instagram/android/d/j/a;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/instagram/android/d/j/a",
            "<",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/c;",
            ">;>;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 30
    invoke-direct {p0}, Lcom/instagram/e/b/b;-><init>()V

    .line 40
    new-instance v0, Lcom/instagram/android/fragment/bu;

    invoke-direct {v0, p0}, Lcom/instagram/android/fragment/bu;-><init>(Lcom/instagram/android/fragment/bt;)V

    iput-object v0, p0, Lcom/instagram/android/fragment/bt;->g:Lcom/instagram/android/d/j/a;

    return-void
.end method

.method private a(II)Landroid/widget/RadioButton;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 137
    sget v0, Lcom/facebook/ax;->template_radiobutton_middle:I

    .line 138
    const/4 v1, 0x1

    if-ne p2, v1, :cond_1

    .line 139
    sget v0, Lcom/facebook/ax;->template_radiobutton_single:I

    .line 145
    :cond_0
    :goto_0
    iget-object v1, p0, Lcom/instagram/android/fragment/bt;->a:Landroid/view/LayoutInflater;

    const/4 v2, 0x0

    invoke-virtual {v1, v0, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RadioButton;

    return-object v0

    .line 140
    :cond_1
    if-nez p1, :cond_2

    .line 141
    sget v0, Lcom/facebook/ax;->template_radiobutton_top:I

    goto :goto_0

    .line 142
    :cond_2
    add-int/lit8 v1, p2, -0x1

    if-ne p1, v1, :cond_0

    .line 143
    sget v0, Lcom/facebook/ax;->template_radiobutton_bottom:I

    goto :goto_0
.end method

.method static synthetic a(Lcom/instagram/android/fragment/bt;)Lcom/instagram/android/widget/InterceptTouchFrameLayout;
    .locals 1
    .parameter

    .prologue
    .line 30
    iget-object v0, p0, Lcom/instagram/android/fragment/bt;->b:Lcom/instagram/android/widget/InterceptTouchFrameLayout;

    return-object v0
.end method

.method static synthetic b(Lcom/instagram/android/fragment/bt;)Ljava/util/List;
    .locals 1
    .parameter

    .prologue
    .line 30
    iget-object v0, p0, Lcom/instagram/android/fragment/bt;->c:Ljava/util/List;

    return-object v0
.end method


# virtual methods
.method public a(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 6
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v5, 0x0

    .line 66
    sget v0, Lcom/facebook/ax;->fragment_facebook_posting_options:I

    invoke-virtual {p1, v0, p2, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v1

    .line 67
    sget v0, Lcom/facebook/aw;->listview_progressbar:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/widget/InterceptTouchFrameLayout;

    iput-object v0, p0, Lcom/instagram/android/fragment/bt;->b:Lcom/instagram/android/widget/InterceptTouchFrameLayout;

    .line 68
    sget v0, Lcom/facebook/aw;->fragment_facebook_posting_options_choose_page:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/instagram/android/fragment/bt;->d:Landroid/widget/TextView;

    .line 70
    sget v0, Lcom/facebook/aw;->fragment_facebook_posting_options_default_button:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RadioButton;

    iput-object v0, p0, Lcom/instagram/android/fragment/bt;->e:Landroid/widget/RadioButton;

    .line 72
    sget v0, Lcom/facebook/aw;->fragment_facebook_posting_options_radiogroup:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RadioGroup;

    iput-object v0, p0, Lcom/instagram/android/fragment/bt;->f:Landroid/widget/RadioGroup;

    .line 74
    invoke-virtual {p0}, Lcom/instagram/android/fragment/bt;->j()Landroid/support/v4/app/j;

    move-result-object v0

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/fragment/bt;->a:Landroid/view/LayoutInflater;

    .line 76
    new-instance v0, Lcom/instagram/android/g/f;

    invoke-virtual {p0}, Lcom/instagram/android/fragment/bt;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-virtual {p0}, Lcom/instagram/android/fragment/bt;->u()Landroid/support/v4/app/aj;

    move-result-object v3

    iget-object v4, p0, Lcom/instagram/android/fragment/bt;->g:Lcom/instagram/android/d/j/a;

    invoke-direct {v0, v2, v3, v5, v4}, Lcom/instagram/android/g/f;-><init>(Landroid/content/Context;Landroid/support/v4/app/aj;ILcom/instagram/android/d/j/a;)V

    .line 80
    invoke-virtual {v0}, Lcom/instagram/android/g/f;->g()V

    .line 82
    return-object v1
.end method

.method public a()Lcom/instagram/a/a;
    .locals 1

    .prologue
    .line 155
    new-instance v0, Lcom/instagram/android/fragment/bw;

    invoke-direct {v0, p0}, Lcom/instagram/android/fragment/bw;-><init>(Lcom/instagram/android/fragment/bt;)V

    return-object v0
.end method

.method public a(Ljava/util/List;)V
    .locals 2
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/c;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 87
    invoke-virtual {p0}, Lcom/instagram/android/fragment/bt;->j()Landroid/support/v4/app/j;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 88
    invoke-virtual {p0, p1}, Lcom/instagram/android/fragment/bt;->b(Ljava/util/List;)V

    .line 91
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_1

    const/4 v0, 0x0

    .line 92
    :goto_0
    iget-object v1, p0, Lcom/instagram/android/fragment/bt;->d:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setVisibility(I)V

    .line 94
    iget-object v0, p0, Lcom/instagram/android/fragment/bt;->f:Landroid/widget/RadioGroup;

    new-instance v1, Lcom/instagram/android/fragment/bv;

    invoke-direct {v1, p0}, Lcom/instagram/android/fragment/bv;-><init>(Lcom/instagram/android/fragment/bt;)V

    invoke-virtual {v0, v1}, Landroid/widget/RadioGroup;->setOnCheckedChangeListener(Landroid/widget/RadioGroup$OnCheckedChangeListener;)V

    .line 107
    invoke-static {}, Lcom/instagram/android/g/b;->i()Z

    move-result v0

    if-nez v0, :cond_0

    .line 108
    iget-object v0, p0, Lcom/instagram/android/fragment/bt;->e:Landroid/widget/RadioButton;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/RadioButton;->setChecked(Z)V

    .line 111
    :cond_0
    return-void

    .line 91
    :cond_1
    const/4 v0, 0x4

    goto :goto_0
.end method

.method public b(Ljava/util/List;)V
    .locals 9
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/c;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 114
    invoke-static {}, Lcom/instagram/android/g/b;->h()Lcom/instagram/android/model/c;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/model/c;->b()Ljava/lang/String;

    move-result-object v2

    .line 115
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v3

    .line 117
    const/4 v0, 0x0

    move v1, v0

    :goto_0
    if-ge v1, v3, :cond_1

    .line 118
    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/model/c;

    .line 119
    invoke-direct {p0, v1, v3}, Lcom/instagram/android/fragment/bt;->a(II)Landroid/widget/RadioButton;

    move-result-object v4

    .line 120
    invoke-virtual {v4, v1}, Landroid/widget/RadioButton;->setId(I)V

    .line 121
    invoke-virtual {v0}, Lcom/instagram/android/model/c;->c()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Landroid/widget/RadioButton;->setText(Ljava/lang/CharSequence;)V

    .line 123
    invoke-virtual {v0}, Lcom/instagram/android/model/c;->b()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 124
    const/4 v0, 0x1

    invoke-virtual {v4, v0}, Landroid/widget/RadioButton;->setChecked(Z)V

    .line 129
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/fragment/bt;->f:Landroid/widget/RadioGroup;

    add-int/lit8 v5, v1, 0x2

    new-instance v6, Landroid/widget/RadioGroup$LayoutParams;

    const/4 v7, -0x1

    const/4 v8, -0x2

    invoke-direct {v6, v7, v8}, Landroid/widget/RadioGroup$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v4, v5, v6}, Landroid/widget/RadioGroup;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    .line 117
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    .line 134
    :cond_1
    return-void
.end method

.method public c(Ljava/util/List;)V
    .locals 0
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/instagram/android/model/c;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 149
    iput-object p1, p0, Lcom/instagram/android/fragment/bt;->c:Ljava/util/List;

    .line 150
    invoke-virtual {p0, p1}, Lcom/instagram/android/fragment/bt;->a(Ljava/util/List;)V

    .line 151
    return-void
.end method

.method public d_()Ljava/lang/String;
    .locals 1

    .prologue
    .line 188
    const-string v0, "facebook_posting_options"

    return-object v0
.end method
